<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         

        <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/userTemplate.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">
            
            <ui:define name="content">
                <f:view>
                    <h:form>
                        <p:panel id="panel" header="ViewUser" style="margin-bottom:10px;">
                        <h:panelGrid columns="2">
                            <h:outputLabel value="UserName:" for="userName" />
                            <h:outputText value="#{userControl.selectedtuser.userName}"/>   
                            <h:outputLabel value="Sex:" for="sex" />
                            <h:outputText value="#{userControl.selectedtuser.sex}"/>
                            <h:outputLabel value="FullName:" for="fullName" />
                            <h:outputText value="#{userControl.selectedtuser.fullName}"/>
                            <h:outputLabel value="Birthday:" for="birthday" />  
                            <h:outputText value="#{userControl.selectedtuser.birthday}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>                 
                            <h:outputLabel value="Phone" for="phone"/>
                            <h:outputText value="#{userControl.selectedtuser.phone}"/>                                        
                            <h:outputLabel value="Address:" for="address" />
                            <h:outputText value="#{userControl.selectedtuser.address}"/>
                            <h:outputLabel value="Email:" for="email" />
                            <h:outputText value="#{userControl.selectedtuser.email}"/>
                            <h:outputLabel value="JoinedDate:" for="joinedDate" />
                            <h:outputText value="#{userControl.selectedtuser.joinedDate}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                            <h:outputLabel value="IsAdmin:" for="isAdmin" />
                            <h:outputText value="#{userControl.selectedtuser.isAdmin}"/>
                            <h:outputLabel value="IsActive:" for="isActive" />
                            <h:outputText value="#{userControl.selectedtuser.isActive}"/>
                            <h:outputLabel value="DepartmentName:" for="departmentName" />
                            <h:outputText value="#{userControl.selectedtuser.departmentName}"/>  
                        </h:panelGrid>
                        </p:panel> 
                    </h:form>
                </f:view>
            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>
